package com.dingreading.cloud.soms.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import lombok.Data;

@Data
@HeadRowHeight(25)
@ContentRowHeight(25)
@ColumnWidth(20)
// 内容字体设置成20
@ContentFontStyle(fontHeightInPoints = 13)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class CountDto {

    @ExcelProperty(value = "统计类型")
    private String title;

    @ColumnWidth(35)
    @ExcelProperty(value = "统计项")
    private String name;

    @ExcelProperty(value = "合计")
    private String value;

    public CountDto(String title, String name, String value) {
        this.title = title;
        this.name = name;
        this.value = value;
    }
}
